package com.mybpm.core

import com.mybpm.core.definition.ProcessLoadService
import org.springframework.beans.factory.annotation.Autowired

//@CompileStatic
class ProcessController {

    @Autowired
    ProcessLoadService processLoadService

//	@Secured('ROLE_USER')
    def index() {
    }

    def load() {
        respond processLoadService.loadXml(), formats: ['json']
//        processLoadService.loadXml()
//        Map<String, Object> map = ['xml':'123']
//        respond map, formats: ['json']
    }
}
